//
//  Circle.m
//  Racing
//
//  Created by vy phan on 4/12/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "Circle.h"

@implementation Circle

/* class method to construct a circle */
+ (id)x:(int)xValue y:(int)yValue
 radius:(int)aRadius {
	id newInstance = [[Circle alloc] init];
	[newInstance x:xValue];
	[newInstance y:yValue];
	[newInstance radius:aRadius];
	return newInstance;
}

/* get the radius value */
- (int)radius {
	return radius;
}

/* set the radius of the circle */
- (int)radius:(int)aNumber {
	radius = aNumber;
	return radius;
}

/* draw the circle */
- draw {
	printf("Drawing a Circle at:(%d,%d), radius %d\n",
		   [self x], [self y], [self radius]);
}
@end